<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <title>test</title>
</head>
<body>
    <h3 th:text="${name}"></h3>

    <div shiro:hasPermission="user:add">
        <a href="add">用户添加</a>
    </div>

    <div  shiro:hasPermission="user:update">
        <a href="update">用户的更新</a>
    </div>

</body>
</html>